from appium import webdriver

class BasePage(object):
    def __init__(self):
        desired_caps = {
            'platformName': 'Android',
            'deviceName': '612Q3BAE226TQ',
            'platformVersion': '6.0',
            'appPackage': 'io.bitun.gbxwallet',
            'appActivity': 'io.bitun.gbxwallet.ui.SplashActivity'
        }

    def connect(self):
        global dr
        dr = webdriver.Remote('http://127.0.0.1:4723/wd/hub', self.desired_caps)

    def getDriver(self):
        return dr

